﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace mesoBoard.Data
{
    public interface ISmileyValidation
    {
        [Required(ErrorMessage="Enter an image URL")]
        string ImageURL { get; set; }

        [Required(ErrorMessage = "Enter a smiley code")]
        string Code { get; set; }
    }

    [MetadataType(typeof(ISmileyValidation))]
    public partial class Smiley : ISmileyValidation { } 


}
